package mianshi.singleton;

/**
 * @author: Tangxz
 * @email: 1171702529@qq.com
 * @cate: 2020/11/16 16:59
 */
public class Holder {
    private Holder(){

    }

    public static Holder getInstance(){
        return InnerClass.HOLDER;
    }

    //私有安全吗？
    private static class InnerClass{
        private static final Holder HOLDER = new Holder();
    }
}
